package com.sdry.mapper.hpf;

import java.util.List;
import java.util.Map;

import com.sdry.model.hpf.LineSideLibrary;
import com.sdry.model.hpf.LineSideLibraryOut;
import com.sdry.model.llm.User;

/**
 * @ClassName: LineSideLibraryMapper 
 * @Description:线边库mapper
 * @Author hpf
 * @Date 2018年9月19日 上午11:09:34 
 * @version 1.0
 */
public interface LineSideLibraryMapper {

	/**
	 * 线边库总数
	 * @param lineSideLibrary
	 * @return
	 */
	Integer countLineSideLibrary(LineSideLibrary lineSideLibrary);
	
	/**
	 * 分页查询线边库
	 * @param map
	 * @return
	 */
	List<LineSideLibrary> listPageLineSideLibrary(Map<String, Object> map);
	
	/**
	 * 查询所有线边库
	 * @return
	 */
	List<LineSideLibrary> listAllLineSideLibrary();
	
	/**
	 * 新增线边库
	 * @param lineSideLibrary 线边库实体
	 * @return
	 */
	Integer insertLineSideLibrary(LineSideLibrary lineSideLibrary);
	
	/**
	 * 跟新线边库
	 * @param lineSideLibrary 线边库实体
	 * @return
	 */
	Integer updateLineSideLibrary(LineSideLibrary lineSideLibrary);
	
	/**
	 * 根据配件ID查询线边库
	 * @param paID 配件ID
	 * @return
	 */
	LineSideLibrary findLineSideLibraryByPaID(Long paID);
	
	/**
	 * 设置预警值
	 * @param lineSideLibrary 线边库实体
	 * @return
	 */
	Integer setWarningValue(LineSideLibrary lineSideLibrary);
	
	/**
	 * 线边库盘点
	 * @param lineSideLibrary
	 * @return
	 */
	Integer lineSideLibraryCheck(LineSideLibrary lineSideLibrary);
	
	/**
	 * 查询当前班组长
	 * @param currentTime
	 * @return
	 */
	User findCurrentTeam(String currentTime);
	
	/**
	 * 线边库盘点清空
	 * @param lineSideLibrary
	 * @return
	 */
	Integer lineSideLibraryEmpty(LineSideLibrary lineSideLibrary);
	
	/**
	 * 查询线边库
	 * @param lineSideLibrary
	 * @return
	 */
	LineSideLibrary findLineSideLibrary(LineSideLibrary lineSideLibrary);

	/**   
	 * 删除线边库
	 * @Title:deleteLineSideLibrary   
	 * @param lslID             
	 */
	void deleteLineSideLibrary(Long lslID);
	
	/**   
	 * 根据配件ID在 线边库出库查找数据
	 * @Title:findLineSideLibraryOutByPaID   
	 * @param paid
	 * @return             
	 */
	LineSideLibraryOut findLineSideLibraryOutByPaID(Long paid);
}
